//
//  OrderMainModel.h
//  DiningCar-Business
//
//  Created by 吕晶 on 2020/4/9.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import <Foundation/Foundation.h>
@class OrderGoodModel;

NS_ASSUME_NONNULL_BEGIN

@interface OrderMainModel : NSObject

@property (nonatomic, assign) int order_id;//订单id
@property (nonatomic, copy) NSString *order_no;//订单编号
@property (nonatomic, copy) NSString *price;//原价
@property (nonatomic, copy) NSString *pay_price;//支付价格
@property (nonatomic, assign) int order_code;//取餐码
@property (nonatomic, assign) int createtime;//创建时间
@property (nonatomic, assign) int successtime;//支付成功时间
@property (nonatomic, copy) NSString *nickname;//用户昵称
@property (nonatomic, copy) NSString *gender;//性别( 0=保密,1=男,2=女)
@property (nonatomic, copy) NSString *avatar;//头像
@property (nonatomic, copy) NSString *mobile;//手机
@property (nonatomic, copy) NSString *order_status;//订单状态（1:待接单,2:已接单,-1:已取消,3：挂单中,4:已完成,5:退款中6:已退款）
@property (nonatomic, copy) NSString *buyer_name;//购买人名称
@property (nonatomic, copy) NSString *buyer_mobile;//购买人手机
@property (nonatomic, copy) NSString *buyer_address;//购买人地址
@property (nonatomic, assign) float fee;//服务费
@property (nonatomic, assign) float income;//收入
@property (nonatomic, strong) NSArray <OrderGoodModel*>*list;

@end

@interface OrderGoodModel : NSObject

@property (nonatomic, assign) int goods_id;//商品id
@property (nonatomic, copy) NSString *spec;//商品规格
@property (nonatomic, assign) int amount;//商品数量
@property (nonatomic, assign) float price;//商品价格
@property (nonatomic, copy) NSString *title;//商品标题
@property (nonatomic, copy) NSString *image;//商品图片

@end

NS_ASSUME_NONNULL_END
